package com.link.base.wechat.wxmenu.service;

import com.link.base.wechat.wxmenu.model.WxMenu;

/**
 * 微信公众号自定义菜单service
 *
 * @author lujiang
 * @date 2019/3/6 18:45
 */
public interface WmenuService {

    /**
     * 微信公众号自定义菜单创建，修改，删除二级菜单
     *
     * @author lujiang
     * @date 2019/03/6 17:13
     * @param wxAppId 微信公众号应用id
     * @param wxMenu 自定义菜单对象
     * @return
     * @throws Exception
     */
    public int upsertWxMenu(String wxAppId, WxMenu wxMenu) throws Exception;

    /**
     * 微信公众号自定义菜单清空
     *
     * @author lujiang
     * @date 2019/03/6 17:13
     * @param wxAppId 微信公众号应用id
     * @return
     * @throws Exception
     */
    public int clearWxMenu(String wxAppId) throws Exception;

}
